﻿<%@page import="com.javabean.FindTotal"%>
<%@ page language="java" import="java.util.*" import="java.sql.*"
	import="javax.servlet.http.HttpSession"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
<!--
body {
	background-color: #fff;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

.tabfont01 {
	font-family: "宋体";
	font-size: 9px;
	color: #555555;
	text-decoration: none;
	text-align: center;
}

.font051 {
	font-family: "宋体";
	font-size: 12px;
	color: #333333;
	text-decoration: none;
	line-height: 20px;
}

.font201 {
	font-family: "宋体";
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}

.button {
	font-family: "宋体";
	font-size: 14px;
	height: 37px;
}

html {
	overflow-x: auto;
	overflow-y: auto;
	border: 0;
}
-->
</style>

<link href="../css/css.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">
	
</script>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
</head>
<SCRIPT language=JavaScript>
	function sousuo() {
		window
				.open(
						"gaojisousuo.htm",
						"",
						"depended=0,alwaysRaised=1,width=800,height=510,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0");
	}
	function selectAll() {
		var obj = document.fom.elements;
		for ( var i = 0; i < obj.length; i++) {
			if (obj[i].name == "delid") {
				obj[i].checked = true;
			}
		}
	}

	function unselectAll() {
		var obj = document.fom.elements;
		for ( var i = 0; i < obj.length; i++) {
			if (obj[i].name == "delid") {
				if (obj[i].checked == true)
					obj[i].checked = false;
				else
					obj[i].checked = true;
			}
		}
	}

</SCRIPT>

<body>
	<form name="fom" id="fom" method="post">
		<%
			int id = Integer.parseInt(request.getParameter("devids"));
			FindTotal getdata = new FindTotal();
			ArrayList device = getdata.find(id);
			ArrayList borrow_record = getdata.findBorrow(id);
		%>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">

			<tr>
				<td height="30">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td>
								<table width="98%" border="0" align="center" cellpadding="0"
									cellspacing="0">
									<tr>
										<td width="21">&nbsp;</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td><table id="subtree1" align="center" style="DISPLAY:"
						width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td><table width="95%" border="0" align="center"
									cellpadding="0" cellspacing="0">

									<tr>
										<td height="40" class="font42"><table width="100%"
												border="0" cellpadding="4" cellspacing="1" bgcolor="#464646"
												class="newfont03">
												<tr>
													<td height="20" colspan="4" align="center"
														bgcolor="#EEEEEE" class="tablestyle_title">设备详细信息</td>
												</tr>
												<tr>
													<td width="16%" height="20" align="right" bgcolor="#FFFFFF">设备名称:</td>
													<td width="34%" bgcolor="#FFFFFF">
														<%
															out.print(device.get(0));
														%>
													</td>
													<td width="16%" height="20" align="right" bgcolor="#FFFFFF">设备编号:</td>
													<td width="34%" colspan="1" bgcolor="#FFFFFF">
														<%
															out.print(device.get(1));
														%>
													</td>
												</tr>
												<tr>
													<td height="20" align="right" bgcolor="#FFFFFF">规格型号:</td>
													<td bgcolor="#FFFFFF">
														<%
															out.print(device.get(2));
														%>
													</td>
													<td height="20" align="right" bgcolor="#FFFFFF">制造日期:</td>
													<td colspan="1" bgcolor="#FFFFFF">
														<%
															out.print(device.get(3));
														%>
													</td>
												</tr>
												<tr>
													<td height="20" align="right" bgcolor="#FFFFFF">年限:</td>
													<td bgcolor="#FFFFFF">
														<%
															out.print(device.get(4));
														%>
													</td>
													<td height="20" align="right" bgcolor="#FFFFFF">生产厂家:</td>
													<td colspan="1" bgcolor="#FFFFFF">
														<%
															out.print(device.get(5));
														%>
													</td>
												</tr>
												<tr>
													<td height="20" align="right" bgcolor="#FFFFFF">使用地点:</td>
													<td bgcolor="#FFFFFF">
														<%
															out.print(device.get(6));
														%>
													</td>
													<td height="20" align="right" bgcolor="#FFFFFF">使用人:</td>
													<td colspan="1" bgcolor="#FFFFFF">
														<%
															out.print(device.get(8));
														%>
													</td>
												</tr>
												<tr>
													<td height="20" align="right" bgcolor="#FFFFFF">备注:</td>
													<td bgcolor="#FFFFFF" colspan="3">
														<%
															out.print(device.get(7));
														%>
													</td>
												</tr>

												<tr>
													<td height="85" align="right" bgcolor="#FFFFFF">出入库记录:</td>
													<td colspan="3" bgcolor="#FFFFFF"><table width="100%"
															align="center" border="0" cellpadding="4" cellspacing="1"
															bgcolor="#464646" style="overflow: auto">
															<tr height="10" align="center" bgcolor="#FFFFFF">
																<td wigth="25%">时间</td>
																<td width="25%">存放位置</td>
																<td width="25%">进出情况</td>
																<td width="25%">经手人</td>
															</tr>
															<%
																for (int i = 0; i < borrow_record.size(); i=i+4) {
															%>





															<tr height="20" bgcolor="#FFFFFF">
																<td>
																	<%
																		out.print(borrow_record.get(i));
																	%>
																</td>
																<td>
																	<%
																		out.print(borrow_record.get(i+2));
																	%>
																</td>
																<td>
																	<%
																		out.print(borrow_record.get(i+1));
																	%>
																</td>
																<td>
																	<%
																		out.print(borrow_record.get(i+3));
																	%>
																</td>
															</tr>
															<%
																}
															%>
														</table></td>
												</tr>
											</table></td>
									</tr>
								</table></td>
						</tr>
					</table>
					<table width="95%" border="0" align="center" cellpadding="0"
						cellspacing="0">
						<tr>
							<td height="6"><img src="../images/spacer.gif" width="1"
								height="1" /></td>
						</tr>
						<tr>
							<td height="33"><table width="100%" border="0"
									align="center" cellpadding="0" cellspacing="0"
									class="right-font08">
									<tr>
										<td width="1%"><table width="20" border="0"
												cellspacing="0" cellpadding="0">
												<tr>
												</tr>
											</table></td>
									</tr>
								</table></td>
						</tr>
					</table></td>
			</tr>
			<tr>
				<td colspan="2" align="center" height="50px">
						<input style="height:20px;" type="button" name="Submit2" value="返回" class="button"
						onclick="window.history.go(-1);" /></td>
			</tr>
		</table>
	</form>
</body>
</html>
